from typing import Optional

from pydantic import BaseModel


class OcrResult(BaseModel):
    txt: str
    url: str


class OcrBase64Body(BaseModel):
    filename: Optional[str]
    base64: str
